#ifndef __I2C_HAL_H__
#define __I2C_HAL_H__

#include "driver/i2c.h"

#define I2C_MASTER_SCL_IO 17      /*!< gpio number for I2C master clock */
#define I2C_MASTER_SDA_IO 18      /*!< gpio number for I2C master data  */
#define I2C_MASTER_NUM I2C_NUM_0  /*!< I2C port number for master dev */
#define I2C_MASTER_FREQ_HZ 400000 /*!< I2C master clock frequency */

#define CH423_I2C_MASTER_SDA_IO 41      /*!< gpio number for I2C master clock */
#define CH423_I2C_MASTER_SCL_IO 40      /*!< gpio number for I2C master data  */
#define CH423_I2C_MASTER_NUM I2C_NUM_1  /*!< I2C port number for master dev */
#define CH423_I2C_MASTER_FREQ_HZ 100000 /*!< I2C master clock frequency */

#ifdef __cplusplus
extern "C"
{
#endif

    const i2c_config_t i2c_conf_func(void);
    const i2c_config_t ch423_i2c_conf_func(void);
    void i2c_init(void);

#ifdef __cplusplus
}
#endif

#endif
